﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Warehouse.DataAccess
{
    public partial class MovingDetail : CustomeEntity<MovingDetail>
    {
        public static MovingDetail Empty = new MovingDetail()
        {
            ID = 0
        };

        protected override System.Linq.Expressions.Expression<Func<MovingDetail, bool>> GetPredicate()
        {
            return p => p.ID == this.ID;
        }
        
        public static MovingDetail[] GetDetails(Guid stockID)
        {
            return GetList(p => p.StockID == stockID).ToArray();
        }

        //static void CopyData(MovingDetail source, MovingDetail target)
        //{
        //    target.Comments = source.Comments;
        //    target.ProductSpecificationID = source.ProductSpecificationID;
        //    target.SerailNumber = source.SerailNumber;
        //    target.Count = source.Count;
        //    target.Comments = source.Comments;
        //}
    }
}
